package com.sunlake.spring.main.model.course.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.sunlake.spring.main.model.course.po.CoursePO;

/**
 * 课程表 Mapper
 */
@Mapper
public interface CourseMapper {

    CoursePO selectById(@Param("id") Long id);

    List<CoursePO> selectFeatured(@Param("limit") int limit);

    List<CoursePO> selectByConditions(@Param("keyword") String keyword,
                                      @Param("category") String category,
                                      @Param("difficulty") String difficulty);

    List<String> selectAllCategories();
}
